﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

	<ResourceDictionary.MergedDictionaries>
		<ResourceDictionary Source="..\Shared.xaml" />
	</ResourceDictionary.MergedDictionaries>

	<!-- Button -->

	<Style TargetType="{x:Type Button}" x:Key="Button.Transparent">
		<Setter Property="OverridesDefaultStyle" Value="True" />
		<Setter Property="FontFamily" Value="Tahoma" />
		<Setter Property="FontSize" Value="11" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="HorizontalContentAlignment" Value="Center" />
		<Setter Property="FocusVisualStyle" Value="{x:Null}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Button}">
					<Grid>
						<Rectangle x:Name="Background"
								   RadiusX="2" RadiusY="2"
								   Fill="Transparent">
						</Rectangle>

						<ContentPresenter VerticalAlignment="Center"
							  HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
							  Content="{TemplateBinding  Content}" />

					</Grid>

					<ControlTemplate.Triggers>
						<Trigger Property="IsEnabled" Value="false">
							<Setter Property="Opacity" Value="0.5" />
						</Trigger>
						<Trigger Property="IsMouseOver" Value="True">
							<!--Setter Property="Foreground" Value="{StaticResource DarkBrush}" /-->
							<Setter Property="Rectangle.Fill" TargetName="Background" Value="{StaticResource FlatButtonOver}" />
						</Trigger>
						<Trigger Property="IsPressed" Value="true">
							<!--Setter Property="Foreground" Value="{StaticResource DarkBrush3}" /-->
							<Setter Property="Rectangle.Fill" TargetName="Background" Value="{StaticResource FlatButtonPressed}" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

</ResourceDictionary>